/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */
package com.excesys.exsecs.om.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 巡检单
 *
 * @author weiyj
 * @date 2023-03-01 14:10:58
 */
@Data
@TableName("om_i_check_sheet")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "巡检单")
public class OmICheckSheet  extends Model<OmICheckSheet> {

	/**
	 * 主键
	 */
	@TableId(type = IdType.AUTO)
	@Schema(description = "主键")
	private Integer stId;

	/**
	 * 路线类型
	 */
	@Schema(description = "路线类型")
	private Integer routeMoudle;

	/**
	 * 路线ID
	 */
	@Schema(description = "路线ID")
	private Integer routeId;

	/**
	 * 巡检计划
	 */
	@Schema(description = "巡检计划")
	private String planNo;

	/**
	 * 巡检单号
	 */
	@Schema(description = "巡检单号")
	private String checkNo;

	/**
	 * 巡检名称
	 */
	@Schema(description = "巡检名称")
	private String checkName;

	/**
	 * 巡检人
	 */
	@Schema(description = "巡检人")
	private Long checkUserId;

	/**
	 * 巡检人名称
	 */
	@Schema(description = "巡检人名称")
	private String checkUserName;

	/**
	 * 巡检人电话
	 */
	@Schema(description = "巡检人电话")
	private String checkUserPhone;

	/**
	 * 实际巡检人
	 */
	@Schema(description = "实际巡检人")
	private Long actualUserId;

	/**
	 * 实际巡检人电话
	 */
	@Schema(description = "实际巡检人电话")
	private String actualUserPhone;

	/**
	 * 巡检部门
	 */
	@Schema(description = "巡检部门")
	private Long checkDeptId;

	/**
	 * 执行日期
	 */
	@Schema(description = "执行日期")
	private String excuteDate;

	/**
	 * 执行开始时间
	 */
	@Schema(description = "执行开始时间")
	private String excuteStartTime;

	/**
	 * 执行结束时间
	 */
	@Schema(description = "执行结束时间")
	private String excuteEndTime;

	/**
	 * 签到时间
	 */
	@Schema(description = "签到时间")
	private LocalDateTime startTime;

	/**
	 * 结束时间
	 */
	@Schema(description = "结束时间")
	private LocalDateTime endTime;

	/**
	 * 巡检单状态
	 */
	@Schema(description = "巡检单状态")
	// 1-待指派 2-指派或者申领 3-已开始 4-已结束
	private String sheetStatus;

	/**
	 * 创建人
	 */
	@TableField(fill = FieldFill.INSERT)
	@Schema(description="创建人")
	private String createBy;

	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	@Schema(description="创建时间")
	private LocalDateTime createTime;

	/**
	 * 更新人
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@Schema(description="更新人")
	private String updateBy;

	/**
	 * 更新时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@Schema(description="更新时间")
	private LocalDateTime updateTime;


}
